<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_ooloma");
$kask=$yhendus->prepare("SELECT id, cat, toon FROM kassid");
echo $yhendus->error;
$kask->bind_result($id, $cat, $toon);
$kask->execute ();

?>
<!doctype html>
<html>
  <head>
  <title>Kassileht</title>
  </head>
  <body>
    <h2>Kassid</h2>
    <?php
     while($kask->fetch()){
   echo "<h2 style='color: $toon'>$cat</h2>";
   }
   $yhendus->close();

   ?>
   jaagup vaatab kasse
   </body>
 </html>